/**
 * 职务管理模块配置文件
 */
export interface Duty {
  id: number
  name: string
  isEnabled: boolean
  isDefault: boolean
  introduction: string
  menu: string[]
  createTime?: string
  updateTime?: string
}

export const moduleApi = '/api/posts'
export const moduleName = '职务管理'

export const searchParams = [
  {
    label: '职务名称',
    prop: 'name',
    component: 'input',
    placeholder: '请输入职务名称',
  },
]

export const addParams = [
  {
    label: '职务名称',
    prop: 'name',
    component: 'input',
    placeholder: '请输入职务名称',
    rules: [{ required: true, message: '请输入职务名称' }],
  },

  {
    label: '职务介绍',
    prop: 'introduction',
    component: 'textarea',
    placeholder: '请输入职务介绍',
  },
]
export const tableColumns = [
  {
    label: '职务名称',
    prop: 'name',
    minWidth: 120,
  },
  {
    label: '职务介绍',
    prop: 'introduction',
    minWidth: 200,
  },
]
